-- GENERATED SPELL FOR [Sanctum Defender] --


function spell0_23435(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(41440,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23435', 652, 1)
end

function Sorts_23435(pUnit, Event)
local choix_sorts_23435 = math.random(0, 0)
if choix_sorts_23435 == 0 then
pUnit:RegisterEvent('spell0_23435', 1, 1)
end
end

function mob23435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23435', math.random(1500, 3000), 1)
end

function mob23435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23435, 1, 'mob23435_Action')
RegisterUnitEvent(23435, 2, 'mob23435_Leave')
RegisterUnitEvent(23435, 3, 'mob23435_Kill')
RegisterUnitEvent(23435, 4, 'mob23435_Die')
